package top.babyyan.base.exception;

/**
 * 功能模块-业务异常
 * @author superbabyyan
 * @since 2024/9/3 10:12
 */
public class BusinessException extends RuntimeException{
    Integer code;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }
    public Integer getCode() {
        return code;
    }
    public BusinessException( String message) {
        super(message);
        this.code = 1;
    }
}
